<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'productId', width:100, unresize:true, align:'center'}">产品ID</th>
        <th lay-data="{field:'productName', width:240,unresize:true, align:'left'}">产品名称</th>
        <th lay-data="{field:'servCategName',unresize:true, width:100, align:'center'}">服务分类</th>
        <th lay-data="{field:'categOneName',  unresize:true, width:100, align:'center'}">一级分类</th>
        <th lay-data="{field:'categName', unresize:true, width:100, align:'center'}">二级分类</th>
        <th lay-data="{field:'unit',  unresize:true, width:80, align:'center'}">单位</th>
        <th lay-data="{field:'productType',  unresize:true, width:90, align:'center'}">产品类型</th>
        <th lay-data="{field:'bizType',  unresize:true, width:180, align:'center'}">业务类型</th>
        <th lay-data="{field:'status',  unresize:true, width:80, align:'center'}">开通状态</th>
        <th lay-data="{field:'channelProductParentId',  unresize:true, align:'center'}">渠道方产品父ID</th>
        <th lay-data="{field:'channelProductSubId',  unresize:true, align:'center'}">渠道方产品子ID</th>
        <th lay-data="{field:'操作',width:140, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.productId}"></td>
        <td th:text="${item.productName}"></td>
        <td th:text="${item.servCategName}"></td>
        <td th:text="${item.categOneName}"></td>
        <td th:text="${item.categName}"></td>
        <td th:text="${item.unit}"></td>
        <td th:text="${item.productType==2?'渠道产品':'通用产品'}">general</td>
        <td th:text="${item.bizTypeShowName}">bizTypeName</td>
        <td th:text="${item.status==2?'开通':'停用'}">status</td>
        <td th:text="${parentIdMap[item.productId]}"></td>
        <td th:text="${subIdMap[item.productId]}"></td>
        <td>
            <a th:if="${#authPermit.checkPermit('/channel/product/map/list.action')}" style="color: #00a0e9" th:lay-href="|/channel/product/map/list.action?channelId=${vo.channelId}&productId=${item.productId}|">渠道产品映射关系</a>
        </td>
    </tr>
    </tbody>
</table>